﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OOAD_Project_Engine.Application.Services;
using OOAD_Project_Engine.Foundation.Interfaces;
using OOAD_Project_Engine.Domain.Entities;

namespace OOAD_Project_Editor.Domain.ManageSceneActions
{
    [Action(ActionType = EActionType.CopyEntity)]
    class CopyEntityAction : ManageSceneAction
    {
        IEntity copyedEntity;

        public CopyEntityAction(ISceneService scene, IEntity entity)
            : base(scene)
        {
            copyedEntity = entity;
        }

        public override void DoAction()
        {
            EntityClipboard.GetInstance().SetEntity(copyedEntity);
        }

    }
}
